package com.acme.bankapp.exceptions;

import com.acme.bankapp.domain.account.Account;

public class OverDraftLimitExceededException extends NotEnoughFundsException {

    private Account account;

    public OverDraftLimitExceededException(final double amount) {
        super(amount);
    }

	public OverDraftLimitExceededException(final double amount, final Account account) {
	    super(amount);
	    this.account = account;
	}

	/**
	 * Method returns client's account.
	 * @return
	 */
	public Account getAccount() {
	    return account;
	}

}
